//---------------------------------------------------------------------------


#pragma hdrstop
#include <system.hpp>
#include <sysutils.hpp>
#include <DateUtils.hpp>

#include "Time.h"

//---------------------------------------------------------------------------

#pragma package(smart_init)

// MilliSecondsBetween

void SetUserTimer(TDateTime *ThisTime, int TimeDelay)
{
  *ThisTime = Now();
  *ThisTime = IncMilliSecond(*ThisTime,TimeDelay);
}

bool UserTimerHasExpired(TDateTime *ThisTime)
{
   if(CompareDateTime(Now(),*ThisTime) == 1)
   {
      return(true);
   }
   return(false);
}

